using System.Collections.Generic;
using System.Linq;
using System;
using System.Runtime.InteropServices;

namespace MyUtils.PInvoke.Structs
{
	[StructLayout(LayoutKind.Sequential)]
	struct TOKEN_PRIVILEGES
	{
		public UInt32 PrivilegeCount;

		[MarshalAs(UnmanagedType.ByValArray, SizeConst = 1)] // !! think we only need one
		public LUID_AND_ATTRIBUTES[] Privileges;

		public static TOKEN_PRIVILEGES Test()
		{
			return new TOKEN_PRIVILEGES
			{
				PrivilegeCount = 1,
				Privileges = new[]
				{
					new LUID_AND_ATTRIBUTES
					{
						Attributes = 0,
					}
				},
			};
		}
	}
}